@echo on&setlocal enabledelayedexpansion
:start

for /f "tokens=*" %%a in (domain.txt) do (nslookup.exe %%a >>a_result.txt)
rem shift
goto :start